package org.ainlolcat.ainscience.metaentity;

import org.jdom.Element;

import java.io.IOException;

/**
 * @author ainlolcat
 * Date: 12/8/11
 */
public interface MetaEntityParser {
        /**
     * loadTemplates from _project_ definition
     * @param desc
     * @return
     * @throws java.io.IOException
     */
    public MetaEntity load(Element desc) throws IOException;

    /**
     * save to _project_ definition
     * @param e
     * @return
     */
    public Element save(MetaEntity e) throws UnsupportedMetaEntityTypeException;
}
